<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #div1 {
      height: 500px;
    }

    #div2 {
      height: 500px;
    }

    #div3 {
      height: 500px;
    }
  </style>
</head>

<body>
  <a href="#div1">div1</a>
  <a href="#div2">div2</a>
  <a href="#div3">div3</a>
  <div id="div1">123</div>
  <div id="div2">456</div>
  <div id="div3">789</div>
</body>

</html>